<html>
<head>
     <title>Help: simplify_unit</title>
</head>
<body>
     <center><table><tbody>
          <tr>
             <td style="border: 1px solid rgb(170, 170, 170); padding: 5px; background-color: #fff;">
                  <h4>simplify_unit</h4>Simplify unit expression
                  <br><small>Last modified: 23-Nov-2010 16:02:29</small>

          </tr>
          <tr>
             <td style="border: 0px solid rgb(170, 170, 170); padding: 5px; background-color: #fff;">
                  <a href="http://guillaumemaze.googlecode.com/svn/trunk/matlab/codes/geophysic/simplify_unit.m">Download here</a>
             </td>
          </tr>
          <tr>
             <td style="border: 1px solid rgb(170, 170, 170); padding: 5px; background-color: #ddd; font-size:12px;">
                  <br>% simplify_unit Simplify unit expression<br>%<br>% U = simplify_unit(U,[VERB])<br>% <br>% Simplify unit expression U.<br>% U is a string with products and ratios of units <br>% such like: 'm^2/s'<br>% Option VERB set to 1/true will print some infomations on<br>% screen.<br>% <br>% Remarks:<br>%	Powers can be handled if between (.)<br>% 	Blank spaces are considered as products 'a b' = 'a*b'<br>% 	Anything between '*' and '/' is considered as a unit.<br>% 	The function is case sensitive.<br>%<br>% Example:<br>%	simplify_unit('m^2/s*s') % will return: 'm^2'<br>%	simplify_unit('m^2/s*m^(3/2)') % will return: 'm^(7/2)/s'<br>%	simplify_unit('1/10^4 1/10^6 mol/kg kg/m^3 m ') % will return: '1/10^10/m^2*mol'<br>%<br>% Be careful with LaTeX notations:<br>%	simplify_unit('\mu mol/kg * kg')<br>% will return: '\mu*mol'<br>% while<br>%	simplify_unit('\mumol/kg * kg')<br>% will return: '\mumol' as expected<br>% However, <br>%	simplify_unit('^oC/kg * kg')<br>%	simplify_unit('m^{-3}/kg * kg')<br>% will return errors. Reformat your string or use (.) for numerical powers<br>%<br>% Created: 2010-11-17<br>% All rights reserved.
             </td>
          </tr>
          <tr>
             <td style="border: 1px solid rgb(170, 170, 170); padding: 5px; background-color: #fff; font-size:12px;">
                  Last update: 2011 March 04, 17:46<br>
                  Created by Guillaume Maze<br>
                  More informations at: <a href="http://codes.guillaumemaze.org/matlab">codes.guillaumemaze.org/matlab</a><br>
             </td>
          </tr>
     </tbody></table></center>
</body>
</html>
